package com.cetc.sdp.kmga.cs.util;

/**
 * @description:
 * @author： DengQiang
 * @date: 2018/3/9 10:15
 */
public class HTableFiled {

    private String name;

    private String colFamily;

    public HTableFiled(String name, String colFamily) {
        this.name = name;
        this.colFamily = colFamily;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColFamily() {
        return colFamily;
    }

    public void setColFamily(String colFamily) {
        this.colFamily = colFamily;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        HTableFiled that = (HTableFiled) o;

        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        return colFamily != null ? colFamily.equals(that.colFamily) : that.colFamily == null;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (colFamily != null ? colFamily.hashCode() : 0);
        return result;
    }
}
